A=Y, B=X, C=XX, D=XY.